package com.nsoft.pdfrender;

import java.awt.image.BufferedImage;

public class PdfImage {
	private String name;
	private String path;
	private int width;
	private int height;
	private BufferedImage data;
	
	public PdfImage(String name,String path,int width,int height){
		this.name=name;
		this.path=path;
		this.width=width;
		this.height=height;
		this.data=null;
	}
	
	public String getImageTag(){
		return "<div><img src=\""+name+"\" style=\"width:"+this.width+"px;height:"+this.height+"px;\"/></div>";
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	
	public BufferedImage getData() {
		return data;
	}
	public void setData(BufferedImage data) {
		this.data = data;
	}
}
